export default function logModule() {
  return {
    name: 'log-module', // 此名称将出现在警告和错误中
    version: '1.0.0',
    buildStart() {
      console.log('🚀 构建开始');
    },
    generateBundle(outputOptions, bundle) {
      Object.keys(bundle).forEach(key => {
        console.log('generateBundle - bundle', key, bundle[key].fileName)
      })
    },
    writeBundle(outputOptions, bundle) {
      Object.keys(bundle).forEach(key => {
        console.log('writeBundle - bundle', key, bundle[key].fileName)
      })
    },
    buildEnd() {
      console.log('✅ 构建完成，输出写入完毕');
    }

  };
}